
<div id="header">
  <div class="header_top">
    <div class="logo left"><img src="<?php echo $this->_var['images_path']; ?>/register_leftlogo.png" class="img1" /></div>
    <div class="search right"><img src="<?php echo $this->_var['images_path']; ?>/searchs.png"></div>
  </div>
  <div class="clear"></div>
  <ul id="menu">
    <?php $_from = $this->_var['home_menu']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'list');$this->_foreach['menu'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['menu']['total'] > 0):
    foreach ($_from AS $this->_var['list']):
        $this->_foreach['menu']['iteration']++;
?>
    <li  class="<?php if ($this->_var['list']['url'] == $this->_var['selected_menu']): ?>current<?php endif; ?> <?php if (($this->_foreach['menu']['iteration'] == $this->_foreach['menu']['total'])): ?>last<?php endif; ?> "><a href="<?php echo $this->_var['site_url']; ?><?php echo $this->_var['list']['url']; ?>" ><?php echo $this->_var['list']['name']; ?></a></li>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  </ul>
</div>
<div class="clear"></div>
<?php echo $this->_var['position']; ?> 
